I would like to know how to detect that it is connected.
Connected on which end? Or, did you mean paired?
You implied that the bluetooth device was physically connected to the Arduino, so the status of that end should not bi in question.
There is no way to know that the other end is connected, unless the device on the other end of the connection is chatty kathy.