Windows user_id

May I know if it is possible to obtain the user’s Windows user_id for doing authentication, thanks.