Report question

Question: How can I programmatically tell if a Bluetooth device is connected?