Getting a country code or internal id might require accessing a database or simply loading a properties file.
How would such a method be placed in an application though? As a utility method it would look out of place so would it fit in an Application Service?
In DDD this type of method would be placed in a repository, which is basically an abstraction of a data access layer. For something like country codes you could consider caching the data since it is static.