Changing bluetooth modem settings using arduino

Hi there. I'm using a bluetooth modem to connect my arduino to mindwave headset. Inorder to configure my modem I set the bluetooth modem to auto connect mode and forgot specify the mac address of the headset . Now the modem is not discoverable and I'm not able to change its settings via bluetooth. Is there any way by which I can revert the blutooth modem to its original configuration via arduino ?