Explanation from Microsoft Support

Go to Start>right-click on My Computer>Manage double click on the CD or DVD drive and see if it says anything about an error Code 39, if so do the following...
Run REGEDIT
Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Class\{4D36E965-E325-11CE-BFC1-08002BE10318}
This folder is the DVD/CD-ROM Drive Class Description in the registry. Look for any of the following names in the right hand column.
* UpperFilters
* LowerFilters
* UpperFilters.bak
* LowerFilters.bak
If any of the above keys shown, right-click on them and choose Delete
close the Registry Editor
Reboot computer
Open My Computer and check to see if your CD or DVD drives have returned. You may also want to open Device Manager and verify that the yellow exclamation and error code on the CD or DVD drive is gone.

Run this for automatic fix