How can I print the printer name on a label

We have several Zebra printers (ZM400, ZT410) and we would like to know on which printer a label has been printed in case of bad printing.

Is it possible to print the printer name on the label? How can I do that? We use ZPL.