You can't use your solution here?
Otherwise, I think you'll have to use a script, as @mmaynard said.
tags = system.tag.getConfiguration(tagPath)
for tag in tags:
tagType = tag['tagType']
if str(tagType) == 'UdtInstance':
imstanceName = str(tag['name'])