Hi Serena,My understanding is this: unless you have a written contract with a gallery that has your work on consignment stating otherwise, both you and the gallery own the name and address of the buyer.
Just because this is the law, it does not make it something that galleries want to agree to. Many galleries will not give the artist the name and address of the purchaser, so be very careful when you are getting into a gallery arrangement about this important detail.