It sounds like your CD/DVD drive has failed and needs replacing, but if it's a desktop computer, first check that the data and power cables are properly connected to it.
(If it's not detected in the BIOS, it's got nothing to do with Windows or the Windows Registry).