Statistical properties of the energy exchanged between two heat baths coupled by thermal fluctuations