Try calling StyledDocument.getCharacterElement(pos) to get the character element at that position and then call Element.getAttributes() to get its attribute set.
The AttributeSet contains styles which you can retrieve using methods provided by StyleConstants.