Hai cercato male

Qualcosa del genere potrebbe andare?
codice:
System.out.println(System.getProperty("os.name"));