So long as it is not blocked on the network you could use UDP broadcast, where by the "black boxes" listen for the broadcast and send back their IP/MAC information to the sender, it will not be instant so you may have to wait a few seconds.
This[
^] article has some information on UDP broadcast.