He had seen clippings of someone slinging around and he may have used his satellite to spy on spiderman

Iron man has a secret serve and his own sattilite which can easily hack any server and ironman has every detail of hero and villain he got them from shield database

Shield didnt know about spiderman at that moment because shield was not working at that time