Unless you already have the actual yield stress of the material provided, you need to get it by plotting when a tensile test specimen goes from increasing tension and increasing strain to when it is increasing strain with no increase in tension. There are standard test setups for this in combination with using Hooke's Law.
Assuming the beam stays all within the elastic (less than yield strength) range, calculate the inertia of the section then get the section modulus (first moment of the area), divide the moment from the load by the section modulus to get the max stress, all stress points in between the max are linear varying from zero at the neutral axis to the max at the extreme most fiber from the neutral axis. This should verify the stress you calculate from the test beam's strain you measure that has to be less than the yield strain. But you don't have to get the area moments if you have the beam strains and with Hooke's Law.
If the beam strain exceeds the yield strain, the beam stress is the yield stress until the point in the beam where the strain is less than the yield strain, it is linear from this point to zero at the new calculated neutral axis. You can also calculate this stress profile using the modified section modulus you recalculate (using the past yield strain producing moment) since you know the yield stress of the material.