So I know with scripts I can retrieve someone's rank, but can I also retrieve the name of the group and the name of the rank?
For the name of the rank do "GetRoleInGroup" instead of "GetRankInGroup". There are also some other things you can do, they are explained in detail on this page: https://developer.roblox.com/api-reference/function/GroupService/GetGroupInfoAsync