Hi Moses,
I would suggest you to go through the article and follow the steps given.
Open the Playing and Burning CDs, DVDs, and Blu‑ray Discs troubleshooter
You can also try the steps given in the following Microsoft knowledge base article.
Your CD drive or DVD drive is missing or is not recognized by Windows or other programs
http://support.microsoft.com/kb/314060
Note: This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the link to view the article:
Back up the registry
(http://windows.microsoft.com/en-US/windows7/Back-up-the-registry )
If the issue persists, then I would suggest you to contact a hardware technician to replace the drive.
Feel free to join us for any further queries.