Is BLE connected?

Is there a way to test if app is connected to a BLE device ?