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
(1) If you are on the Window system.
Open the command prompt.
dotnet --version
(2) Run the below command If you are on Linux system.
dotnet --version dotnet --info