Xiaomi have app for thisĀ
http://en.miui.com/forum.php?mod=viewthread&tid=98838&highlight=verification
also You can check warranty online by IMEI atĀ
https://hardreset24.com/warranty_check/
Also you need to know that warranty often depends of country of purhase
regards