Look in to InDesign's DOM (Document Object Model), and specifically at Paragraph Style properties: ParagraphStyle In there you can find a property "styleExportTagMaps" – a plural, probably because you can add multiple tags to a single style (?). Browsing to that, you get StyleExportTagMap ...
community.adobe.com