Take device finger print and Geo location

Hi there, I want to have MFA enabled when device finger print and Geo locaiton changes.While validating the previous we probably need to store that in the database to mach again during subsequnt loigns. pls advice how to achive this.