By default, the T2 x y messages do not contain the ID. But if you do
setpar serstyle Normal
Then you will get messages
N2 id x y w h
See http://jevois.org/doc/UserSerialStyle.html for details.
Then you need to modify the state machine in the arduino code to look for N2 first, then get the id, etc
Note that aruco ids start with a U and then a number. Once you have the id, you can ignore the ones you do not care about.