It would look at the pubkey and see if it matches the nostrPubkey on the target pubkeys lnaddress. Expensive op and would need caching tho
Discussion
Off topic- is there a way to sign a nostr pubkey to prove you hold priv? What about multi sig? Same attributes as bitcoin?