I see. I would say it would probably be easier to do this checking direct from the app, rather than go through SQL Server. You could query Active Directory for this info - obviously the exact method for doing this would vary depending on how you've built your app.
I've never done this myself but you may get a solution by posting in a forum dedicated to your app (VB, ASP etc..)
--James