If you set the resource to "delivery" via the properties tab of the query activity, you can traverse to the template link and fetch the required attributes of the source delivery template.
This can then be exported to a destination (say sFTP, Azure Blob or Amazon S3 etc.,)