Can I access and save the Color Table in an INDEXEDCOLOR document?

I’m working with documents that are mode = DocumentMode.INDEXEDCOLOR. In Photoshop, I can go to Image > Mode > Color Table... and see swatches of every color; then I can save the color table as an .act file. I would like to do this using UXP’s app.activeDocument. Is this possible?