get the $network someone is on - from a different network?

trying to do a script that checks all networks i am on for a nick ..

and then gives me the $network that nick is on
so i can msg that nick ..

Any Ideas ?

Thanks ..