Attached is the vbscrip to get information regarding MEDIA [CD/DVD ROM & HDD] on the machine. The script will fetch information using WMI and write the results to a text file [c:\Report.txt].
Good luck!