The US (and presumably other countries like Russia and China) has a pretty robust tracking network that keeps track of pretty much everything in orbit above a certain size. With that info and when the strike actually happened it's pretty easy to backtrack to determine the possible culprits.
http://www.stratcom.mil/Media/Factsheets/Factsheet-View/Arti...