CD and DVD use a different wavelength Laser to read/burn the disc's so it's very unlikely that both types of Disc are unreadable.
Anyway regardless recorded disc's require a more intense Laser Beam to read them so the obvious thing is that a Disc has been left in the drive for a lot of the time that the computer is running and the Laser LED has lost intensity and fallen below the threshold of being able to read the Disc.
As stated previously this generally only happens to the 1 type of Disc so if you have left Cd's in the drive while they are not being used it's the CD that is unreadable and if you have left DVDs in the drive while the system is running it's the DVD Disc's that become unreadable.
But as a double check insert a Boot Disc and then start the computer after setting the BIOS to Boot from the Optical Drive before the HDD and if the system boots from the Optical Drive with a Burnt Disc in it then you have a software problem that is somehow preventing the Burnt disc's from being read.
You can repeat this process with both a CD and DVD to make sure that both types actually work or not.
If they do not work you need to replace the Optical Drive. As to how you do this it's a bit hard to give instructions without the exact model number but you can search your Model Number and Service Manual on the Dell Web Site and download the Service Manual for your Model system.
Col