get WiFi connection type? (2,4 GHz/5 GHz)

Is it possible to get WiFi connection type back? (2,4 GHz/5ghz)?

And its not a part of the ssid...