You can use the "drivelist" command to get a list of all drives on the machine then search each drive in turn (except A of course!) for a file you know exists and is part of your game. When you find it, you've got their CD drive. Then save that value into a text file which you load the next time your game is run - if the file has gone the 2nd time around, repeat the first procedure and create the text file again (if, say, they've changed their drive letter). Not wonderfully "pretty" way of doing it - but it will work.
Cheers,
Rich
"Gentlemen, we are about to short-circuit the Universe!"
DB Team / Atari ST / DarkForge / Retro Gaming