Primero asegurate que en el IIS tienes activada la casilla de Propiedades>Seguridad> Autentificacion de windows y luego solo necesitas este codigo.
If Request.ServerVariables("LOGON_USER") = "" Then
' fn_msgbox("No se ha identificado usuario")
Response.Status = "401 Access Denied"
' Session.Abandon
Response.End
Else
Session("LOGON_USER") = Request.ServerVariables("LOGON_USER")
' the following lines strip out an NT domain from the user name
If InStr(Session("LOGON_USER"),"\") then
Session("LOGON_USER") = _
Right(Session("LOGON_USER"), _
Len(Session("LOGON_USER")) - _
InStr(Session("LOGON_USER"),"\"))
End If
End If