How can I determine programmatically whether my machine is an x86, x64 or an IA64?
cpu-z is the program you want, it will tell you which processor you have and what extensions it supports