DVD drive and fan control depends on the system and mobo/DVD drive, as well as your operating system. This is not like DOS where you can control everything you want, from your program. THAT was WAY too hacker/virus/malware friendly. Nowadays, anything you want to do like this, you do it through the operating system. That means the answer depends on the operating system you have.
Same with system shutdown. You can't have a rogue program shutting down computers all over, whenever they want.