How about the PROCESSOR_ARCHITECTURE environment variable? Returns AMD64 when running a 64 bit process on an x64 OS. Keep in mind that 32 bit processes running in wow64 will return x86 from this var (try %processor_architecture% from the cmd.exe in C:\Windows\SysWOW64), so make sure your batch file runs 64 bit native.
Dan