Quantum mechanical approach to probing the birth of attosecond pulses using a two-colour field