dumpbin.exe /headers xyz.dll. Because its output is rather noisy, the output might be filtered with findstr: C:\> dumpbin /headers xyz.dll | findstr /c:"machine (x" C:\> dumpbin /headers xyz.exe | findstr /c:"machine (x"
14C machine (x86), the Portable Executable was compiled for 32-bit, if it is something like 8664 machine (x64), it was compiled for 64-bit.