You can set drive letters programmatically with BTEWin, the script interpreter that is provided with the Virtual Desktop / Vdesk package that can be found on the Daemon Tools web page.

The appropiate command is daemonletter device, letter .

Example: daemonletter 0, X: