Great idea! We can communicate the max depth using an attribute on the processing instruction. DocBook XSL provides the pi-attribute template to extract the value of an attribute on a processing instruction.
I've opened an issue in Asciidoctor core to add this attribute if sectnumlevels is set (and also if toclevels is set).
Cheers,
-Dan