Is there a way to get group type Id by group name?

Certified Associate Developer

Is there a way to get group type Id by group name?

  Discussion posts and replies are publicly visible