The dress code is often stated on the invitation. If this is not the case, you can inquire directly with the bride and groom or the maid of honor.