You can use the density of gases formula, d = PM/RT, where P is the pressure, M is the molar mass (in this case a weighted average of the two gases' molar masses), R is the ideal gas constant, and T is the temperature. Once you have solved for the averaged molar mass, it is possible to find the mole fractions by solving the simultaneous equations
X(N2) + X(O2) = 1
and
28.0 g/mol * X(N2) + 32.0 g/mol * X(O2) = M.