Couple of approaches that have been used on this..
(1) Log the user, IP, and other info to a database, CSV, etc.
(2) Cisco has a tool for getting this or related info as well - UTLITE33.EXE (From Cisco)

You would then query either of these.

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's