Unfortunately, the bladeRF has no way of knowing whether it is being powered over the USB bus or an external DC supply. If the software really needs to know, you could make a small circuit on a proto board that toggles an FPGA input based on the presence of VDC. It would still be up to the user to change the jumper configuration to select the power source.