Mattias, thanks for your response.
Actually the way I found to do it was slightly different, although was
seemingly at one point in time Microsoft's "recommended" approach.
The key HKLM\System\CurrentControlSet\Control\ProductOptions contains
the ProductType value
This is WinNT (Workstation), ServerNT (standalone server) or LanmanNT
(Domain Controller)
These values appear to be both backward and forward compatible also,
for example they will work with NT4 & NT3.51, but also the two server
values appear good for W2K3 also (though of course if the framework
can give this information it will be far cleaner).
See
http://support.microsoft.com/?kbid=152078 for more info.