Exporting the names of all group set and groups

Is there a way to export the names of all group sets and groups - to an

external platform such as word document? In my current project, we have in

our EN shared library many group sets and groups, so we would like to

generate a list with all of them on a word document.