I assume you mean finding out the OS of the machine running PostgreSQL??
Maybe this will give a clue:
db=>select version();
(I've never run it on Windows so I don't know what that produces for thatOS)
adam