A geometric inverse problem for the Boussinesq system