以下ZPLコマンドで可能です
^XA
^RS8
^RFR,H,0,8,2^FN1^FS
^HV1,,8-byte Tag ID Data:^FS
^XZ
※コマンド動作詳細に付いては以下ZPLマニュアルをご覧ください
https://www.zebra.com/content/dam/zebra_new_ia/en-us/manuals/printers/common/programming/zpl-zbi2-pm-en-pg.pdf
Page-237 ^HV
Use this command to return data from specified fields, along with an optional ASCII header, to the host computer.
You can use this command with any field that has been assigned a number with the ^FN and ^RF commands
Page-400 ^RF
Example: This example reads the extended Gen 2 tag ID (TID), which is not read by the ^RI command, and returns the results to the host computer.
The results are labeled with the header “8-byte Tag ID Data.
(The ^RS command can be omitted for printers that use Gen 2 tag types only.)
ATS0165