Yes. There is a function for that in the Godot.OS Class:
//
// Summary:
// Returns the name of the host OS. Possible values are: "Android", "iOS", "HTML5",
// "OSX", "Server", "Windows", "UWP", "X11".
[GodotMethodAttribute("get_name")]
public static string GetName();