I don't think there is any documentation on this specifically. But you probably just need to use the StyleManager to get the current Style Library in memory into a StyleLibrary variable. Then you can examine the roles in the library.