In situ determination of Zeeman content of collective atomic memories