My applescript skills have wasted away but in JS it would be:
Returns true or false, assuming that you have selected some text.
One way to do it in Applescript:
tell application "Adobe InDesign CS6"
tell document 1
tell page 1
tell (every text frame whose label is "frame1")
-- paragraph 1 has no style overrides
return style overridden of paragraph 1 --> false
-- paragraph 2's leading is different
return style overridden of paragraph 2 --> true
God, I miss Applescript. I am sick to death of curley braces.