Keep in mind this info can be faked (Hong Kong manufacturers putting fake TY01 codes on their discs was a thing when Taiyo Yuden discs were in high demand). And the dye type is not necessarily the actual dye type used, but the hint to the drive about which burning mode to use (I've read that azo discs are burned using the cyanine strategy).
To view the atip of a CD-R/CD-RW on Linux using the cdrecord package:
Recordable DVDs have a similar area called the Media Identification Code. To read this information on Linux using the dvd+rw-tools package: