Hi Juri,
In a response to a question I had posted before, Reiner Hille-Doering gave the impression that the datasource assigned to a component could be determined by referencing a "DATA_PROVIDER_REF" property from within a ZTL method. If you are able to do this, then perhaps you could try calling the dataSourceInfo.queryTechnicalName() method from the ZTL to get the technical name of the bound query.
Let me know how you go.
Regards,
Mustafa.