T-Mobile has a page for checking IMEI numbers to see if devices are blacklisted:

http://www.t-mobile.com/verifyIMEI.aspx