Your title says "MS-DOS command". Well, MS-DOS is always installed on drive C. if, however, you meant a Microsoft Windows console command, then for Windows NT family OSs the system variable %SystemDrive% contains the letter of the drive on which the currently running operating system is installed. It may be the same on W95/98/ME.
Type SET at the prompt to see all current system variables.