You can, but not to determine whether the underlying OS is 32-bit or
64-bit...
That has nothing whatsoever to do with your OS.
In Project Explorer, right-click on your project, click Properties, select
the Build tab and change the Platform target dropdown to "x86" - now what
does the above code give...?