How did Tony know Pete was Spiderman??
My theory is he used some Red Wing type thing and followed him home, his spider sense might have picked it up, but he only had his powers 6 months (he sure did handle the big fight well for a relative noob hero!) ...but that's all I can come up with.