Start in Safe mode, remove all CD and DVD drives from Device Manager, restart the computer, let Windows recognize the drive and reinstall its drivers.
If no luck, then disable DMA in the Settings tab for the drive in Dev. Mgr.
If still no good, then the drive may be faulty.
You can either replace it, or keep it for playing DVD's, and install a CD-ROM drive for your CD's(They're inexpensive).