Well the title pretty much sums the question. The only thing I found is this but I\'m not sure if thats the way to go.
os.name should do it. More information here