Probability distribution of work done on a two-level system during a non-equilibrium isothermal process