Very stupid question... how to determine, what kind of windows user has? W95/98/NT/2000/NET?

I know GetVersion and GetVersionEx, but they return major version - the problem is both W95 and W98 have major version 4.