Download the official Xiaomi Flash Tool to flash or install Stock Firmware (ROM) on devices running on Qualcomm Chipsets.
xiaomiflashtool.com
get that latest flash tool
download and extract and then run XiaoMiFlash.exe
and then there should be the driver installation window coming up, if it doesnt, click on "Driver" in the list inbetween Configuration and "Other"
After that, use the update rom bat