usesJavaScript

Returns true if the PDF document uses JavaScript.
[read-only property] usesJavaScript([out, retval] VARIANT_BOOL *js)
This property is true if the PDF document uses JavaScript.

This checks for any JavaScript "actions" in the PDF; it doesn't attempt to determine what the actions do.

VB:
js = pdf.usesJavaScript