You have to put when you plan on taking Step II on your your ERAS. Based on this information, residency programs will know when you plan on taking it. This can change of course (for instance, I ended delaying my Step II by several months).
Some programs may ask you about it, but most will probably not care.