The Common Lisp function
In particular software-type can be used to distinguish between systems based on Windows 95 and those based on Windows NT. software-version allows you to identify variants such as Windows XP, Windows Vista, Windows 7 and so on. See the manual pages for details.
LispWorks User Guide and Reference Manual - 21 Dec 2011