Full Version of this article can be found here

Changing the location of your Program Files Directory

How do I change the location of the Program Files folder in XP?

In regedit Go to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion

Find the key called ProgramFilesDir

Tip:
Dont add a '\' on the end of the location, for example c:\program files as opposed to c:\program files\

You can also find Common Files path, Device Driver path, Media Path, Wallpaper directory in this location

For system and special folders use:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders