Use Nernst Equation. Standard Electrode Equilibrium Potential (E^0) is 1.229V for a H2-O2 fuel cell. Just be sure to use 0.21 for oxygen activity in air. Also if you have specific partial pressures at which you supplied the reactant gases, use their activity as well. Although, since the pressure terms appear in natural logarithm, so their effect on the reversible voltage calculation will be minimal.
Consider SOFC as a black box with Air and H2 (+ something else) - input ; depleted air and the rest of H2, H2O, +something else (if any) - output. An ideal condition means that the temperature is constant and delta G = We (free Gibbs energy = electric power). Then, V=deltaG/(n(O2)*Ne* F), where n(O2) - moles of O2 that penetrate through membrane; Ne = 4 (electrons per mol of O2), F - Faraday constant. Please, see details in
Granovskii M., I. Dincer and M.A. Rosen. Exergy analysis of gas turbine cycle with steam generation for methane conversion within solid oxide fuel cells. Journal of Fuel Cell Science and Technology. 5, 031005(2008)