How Can I Show Two Digit Vendor Country

This "{$vendor_data.country|fn_get_country_name}" will show complete country i want to show only 2 digit.

example United State to US

Hello

{$vendor_data.country}

Best regards

Robert

Hello

{$vendor_data.country}

Best regards

Robert

Thanks!