retrieving both class permission for both see this class and can attach object to a class

I would like to get user or user group permission on the class level via COM API as shown in the image. Kindly assist.