I’ve done a bit more investigation and while thisComp.marker.numKeys does indeed return the correct number of composition markers, if you try and access any of the marker info such as:
thisComp.marker.keyValue(1).comment
You get an error that keyValue is undefined.
So right now, I’m not very hopeful that we’ll be able to get access to those markers unfortunately.