Direction of arrival (DOA) estimation plays an important role in binaural hearing systems. Recently methods usually require a large array of microphones or do not adapt special conditions, e.g., humanoid robot with the effect of head-related transfer function. In this paper, we propose a two-microphone DOA estimation algorithm, namely EC-BEAM, which applies equalization-cancellation (EC) model into DOA estimation through beamforming-based technique. Specifically, the EC model is integrated into beamforming to remove the signal components from a given direction and yield the energy of the remained signals from other directions. Through searching several DOA candidates, the true DOA is determined as the direction at which the energy of the remained signals gets to minimum. Experimental results showed that EC-BEAM can not only well adapt to binaural hearing systems but also be able estimate much accurately the DOA of target signal in various noise conditions with only two microphones.