Do you want to look at every story? Or just the text selection?
Do you use nested styles?
The essence of the process is to look at the text style ranges of interest and compare them to the paragraph styles/character styles applied to those ranges. But nested styles can make life difficult because they will look like overrides when they're not.