Try the following:
Open the Device Manager and right-click the CD-ROM and select "Uninstall device" and then uninstall the device.
Then:
Action > Scan for hardware changes
Is the CD-ROM redetected properly?
If so, restart the computer and make sure the CD-ROM is still detected properly.