Couple of options. (1) rootkit/virus/malware. (2) loose connector to DVD writer. (3) bad software. (4) failed DVD player
Do you have/run antivirus? "Windows security essentials" is a free download, use it.
Do you have autoplay on for the DVD player? Turn it off. (What program was it defaulting to?)
Refresh the DVD writer's drivers by deleting the DVD player from Device Manager then rebooting so windows can discover it again and install again.
IF the DVD write failed that is an easy part to fix.