Use the uname -m command within the Terminal.

uname -m

The above command displays the Machine Hardware Name and indicates whether your system is 32-Bit or 64-Bit.

If your system is 64-Bit then the output will be x86_64 and for 32-Bit the output will be either i686 or i386