As a normal user, no, it is not possible. You receive no notification of when someone /whois's you or uses /uwho.

On *some* IRCds (not all) IRCops are notified when someone /whois's them (I don't know about /uwho, I would assume so). The message that is displayed comes in the form of a server notice to the best of my knowledge, so it would be detected via ON SNOTICE - see /help on snotice. Of course, in this case, there is no need for a script to notify you of when it happens, as the server tells you!

If you are an IRCop, ask your server admin what mode you need to set to be able to see people who /whois you. If you're a user, you cannot.

Regards,