@kagan two ways — you can ask the staff (not an awesome idea, to be frank), or you can often find their info in the hospital’s website.
Generally this is not time-sensitive, so you can always wait until discharge to ask for the info as well.
Some places they are helpful, some not, but in the US all hospitals track patient satisfaction and 100% do harass the physicians about it later.