|It is possible for a virus to most anything related to your computer. That said, there is probably a more likely reason for the current behavior.|
How do you know the drive will no longer burn disks? The fact that an optical drive doesn't automatically open and display files or play files doesn't indicate there is anything wrong with the drive. Not if you can access the files by using explorer.
That is simply a setting in Windows that got changed for some reason.
Back to writing (burning) disks. Did you recently install or remove any optical writing programs? Install or remove any scanners or all in one printers? Reinstall Windows?