Not sure if you know, but there are 'Upper Castes' that eat Non-Vegetarian food. Asking someone if they are vegetarian or not, just to ascertain their caste would be a dumb thing to do, especially when you can know someone's caste from their last name (and maybe some googling on top, if you really really wanted to know their caste)