Is there a way to detect whether the OS is 32 bit or 64 bit?

I was thinking I could check for the registry node:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node

But there could be an easier way...

Thoughts?