Getting Bluetooth addresses of connected devices via Arduino Uno?
The HC-05 has an AT command, AT+BIND?, that will tell you which slave device it is connected with currently. Since you can connect to one device only at the same time, your array is going to be a very short one.

AT+INQ will provide you with a list of nearby devices, to which it can connect.