Well if you just want to differentiate from WORKSTATION and SERVER then only look for WinNT on the registry read. ALL workstations use WinNT and the Servers as you know use a variety of different values.

So IF it matches WinNT then it is a workstation, otherwise it's a Server.
Then if you need to know which server is when you'd need to use some other code.