You can use the following..

Without Kixtart

If "%OS%" == "Windows_NT" goto NT
If NOT "%WINBOOTDIR%" == "" goto 95

With Kixtart

@inwin ; 1 = NT 2 = 95

See ya...