Have you recently re-installed your operating system?
Does the optical drive show in My Computer?
Are the drivers for the optical drive installed?
And has it worked before?
Open Computer and right click in the open, select Properties, when that opens look for "Device Manager" on the left, select that.
A "Device Manager" window will open, does it show any issues or symbols under the "DVD/CD-Rom Drives" tab?