I know that for older versions of .NET, you can determine if a given version is installed by following
https://support.microsoft.com/en-us/kb/318785
Alternatively you can just look inside
C:\Program Files\dotnet\sdk