In Asp.Net Core 2.x I could obtain IIS information via Server Vars like so:
IServerVariablesFeature serverVars = HttpContext.Features.Get