First try the basic things, From the Device manager , go to your CD & DVD drives and uninstall the drivers.
And restart to see if your corrupted drivers gets corrected and drives gets recognised.
btw What are the CD & DVD burning softwares (if its a burner) are you using? And what are he makes of your drives?
So check if these softwares are causing any errors? Uninstall these burning softwares to check.