Salesforce Chatter Groups are stored in CollaborationGroup object or entity.
SOQL:
SELECT Id, Name, CollaborationType
FROM CollaborationGroup
To mass update Salesforce Chatter Groups Type, then update the CollaborationType field on the CollaborationGroup object or entity.