They almost definitely got this info by simply having the IMEI, which is printed on the back and can definitely be accessed in whatever Apple calls their service mode though.
I'm pretty sure your scanner is scanning at a ridiculously high DPI or something, had this problem with some Epsons and it could be fixed in the software, there are two softwares too, one is scan smart and one is scan 2