The Montagues found out because when the Capulets sent a servant to invite people, he couldn't read the guest list. He stopped some "strangers" in the market place who happened to be Montagues. They helped him read the list and found out about the party.