Firstly, press Windows + R key combination, type devmgmt.msc and click OK. Expand the DVD/CD-ROM drives icon, right-click on the driver and press Uninstall. Reboot your computer, press Scan for hardware changes icon from Device Manager and wait for Windows to retrieve the drivers.
After that, go to Start, type regedit and open the utility. Navigate to HKEY-LOCAL-MACHINE > SYSTEM > CurrentControlSet > Control > Class > {4D36E965-E325-11CE-BFC1-08002BE10318} and delete the UpperFilters and LowerFilters from the right pane. If the problem persists, try running the Fix It utility provided by Microsoft.
If Windows Media Player is not able to open the files from your CD, go to Start > Control Panel > Uninstall a program and select Turn Windows Features ON or OFF from the left. After that, expand the Media Features list, uncheck Windows Media Player box and click OK. Reboot your PC, navigate again to Media Features directory and check the Windows Media Player box.