You can iterate over all annotations and check for a type of stamp. See here for some information about how to loop over all your annotations:
Acrobat DC SDK Documentation - Doc.getAnnots()
And here is information about the type property of the Annotation object: Acrobat DC SDK Documentation - Annotation.type
Retrieving data ...