Periods of Hilbert modular surfaces