Most of the time you can tell by checking the current kerel.

uname -m

Other times, if you want to check the userland binaries, you can run:

getconf LONG_BIT