HKLM\System\CurrentControlSet\Control\Session Manager | PendingFileRenameOperations

I usually check that value in the registry and if it contains data then the machine is pending a reboot. And i believe someone even wrote a UDF for it...here it is.

CheckUpdateOnReboot