The most basic way is with the @DOS macro, which is built-in and returns the OS version. There's also a simple way to determine the platform architecture. There are UDFs on my web site that might be helpful:

ARCH() - returns "x64" or "x86" depending on the architecture.
Is64Bit() - returns 1 if running on a 64-bit O/S, 0 if 32-bit.
(Both of the above are in the same UDF file.

HostIsServer() - returns 1 if the host is a server O/S, 0 otherwise.
HostIsWkstn() - returns 1 if the host is a workstation O/S, 0 otherwise.

OSVer() - returns the O/S Version from a local or remote computer via reg reads of Major/Minor version keys. (Could provide different results on W10 than @DOS, as some early versions of W10 reported 6.x while @DOS reports "10". After the latest updates on my W10 workstation, @DOS reports "10" while OSVer() reports "10.0".

Glenn
_________________________
Actually I am a Rocket Scientist! \:D