A double mean field equation related to a curvature prescription problem