SkyNet knowing about its failed attempts can be explained by the TX uploading information in T-3. However, how would it know about John's attachement to the T800? Only thing l can come up with is that an infinfeltrator overheard John mentioning it, and relayed that info to SkyNet