Hi Aneesh,
you can try the below modules available in marketplace
Country enumeration:
https://marketplace.mendix.com/link/component/1775
RestCountries:
https://marketplace.mendix.com/link/component/116980
CountryCodes:
https://marketplace.mendix.com/link/component/112070
Hope it helps!!!