1. Check for viruses/spyware.
2. Check for loose connections within motherboard.
3. Check cpu temperature, check for overheat issues.
4. Clean your PC if you havent. (j/k

)
As for the cd problem, the cd or optical drive lens may have problems, or it may be a hard disk error. Check for all of these, especially check for loose connections. Call the computer d00d if you're on warranty.