Both are correct, but A is better. It would be still better to say "someone's home" because the reason for taking off their shoes is not that they do not like to wear shoes in homes or houses. The reason is to show respect for the person who lives there. Saying "someone's" emphasizes respect for that person.
The reason that "home" is a better word to use than "house" is that a house is merely a building that is located in some particular place. "Home", however, is a place in the heart.