Try disconnecting all USB devices other than the mouse and keyboard. Connect those two devices to primary USB ports. Also disconnect LAN connections (network, external modem). See if that resolves the situation.
If not, boot to Safe Mode (not Safe Mode with Networking), delete the contents of the C:\Documents and Settings\[Your User Profile]\Local Settings\Temp folder. Then try to shut down. If that resolves the issue then it is most likely related to a driver or service loading during normal boot that is not fully closing at shutdown.
One user I know gave up trying to pinpoint the issue for a while and instead he added Safe Mode as an option to the boot menu. Then he would Restart, select Safe Mode in the list by hitting the down arrow once and the Enter key and lastly he would perform a shut-down after it booted to Safe Mode.
Just in case you need a temporary work-around like that, here are the steps: http://tinyurl.com/gomxy .
It may be that an error is occurring during Shutdown and that is sending the system into a Restart cycle.
If you haven't changed any of the system failure settings, you should be able to see the error by looking in the Event Log. But a better long-term solution is to turn off the automatic reboot so you can actually see the error when it happens?chances are it will tell you enough about itself to let you troubleshoot further. To change the recovery settings to disable automatic rebooting:
Right-click My Computer, and then click Properties. Click the Advanced tab. Under Startup and Recovery, click Settings to open the Startup and Recovery dialog box. Clear the Automatically restart check box, and click OK the necessary number of times. Restart your computer for the settings to take effect.
Now when you go to shut down and a fatal error occurs, you'll at least see it and it won't cause an automatic reboot. You still have to sort out what's causing the problem
There is also a Registry key and value you can check.
***Warning: Performing manual changes to the Windows Registry incorrectly can make Windows inoperable. It is always advised to perform a Registry backup and setting an XP Restore point prior to making changes to the Registry.***
That being said, go to Start - Run - regedit.
With the Registry open, find this key: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\WindowsNT\CurrentVersion\Winlogon].
Create a new string value, or modify the existing value, called PowerdownAfterShutdown
and set it to "1" to power off the computer at shutdown, or "0" to reboot. Restart
Windows for the change to take effect.
Please let me know if this helps.