Is there a way  to schedule hibernate/shut down on an HTC Desire HD?
You should be able to use either Locale or Tasker to setup a condition (i.e., at 2 am) to do something (turn volume down, stop media player, or turn off wifi or other services).  But as far as I know, neither program will let you shut down your phone.