Hospitals do not routinely ask about pets. Tell the admitting nurse or a social worker as soon as you can that an animal is home alone, and give them your emergency contact. Many hospitals have a social worker who can make calls for you.
If nobody can be reached, staff may contact local animal services to do a welfare check. What follows depends on local rules: an animal may be boarded temporarily, and there can be daily fees and a deadline to reclaim.