Vodafone and T-mobile are two different networks. The two locks cannot be found on a single mobile. A mobile can be locked to any one of the network. If you need to find out to which network is the mobile been blocked, Insert the Vodafone SIM to it. If it reads the Vodafone SIM and doesn't read any other SIM, then it is locked to Vodafone. Similarly you can test it with T-Mobile too.
If you need to unlock the mobile find out which network it has been locked to. Then visit any unlocking site. for example you can visit here Wickedunlock.com this site provides accurate unlock codes at affordable cost. with complete guidance on unlocking process