Help with Gathering Network and OS Info

I'm looking for a way to tell the OS being run by the PC running my
program.

I want my program to behave differently on an NT system than on a 95
System.  

Also anyone who knows of a method of determining the Network the PC is
connected to, i.e.  Novell, NT would be really helpful.

Thanks,

Rik.
--[r-bar...@vsoft.demon.co.uk]---------
Any views expressed are my own and may
not be those of my employer.