Hi,
What you want depends on use case to use case. Without knowing great promeners, you will get the current user id through GetUsetId (), and query the users table, if there is a match is because there is the name.
But as I told you, I give this suggestion without knowing great details of what you want.
I hope this help you.
Cheers,
Nuno Verdasca