Joseph and Mary likely spoke Aramaic at home. Jewish kids of his era were schooled in Hebrew, as well. As to his ability to pick up a third language, I have known kids who grew up in Switzerland who were easily fluent in four or five languages, because of kids' remarkable ability to assimilate language through their pores.