they only store your IP address for a maximum of 12 months, apparently.
True, but as soon as Sky are advised of thee pending court hearing they have to immediately record all the IP addresses and who they're connected to and then store them pending the outcome of the hearing.
Sky don't hand over any information unless compelled to by court order.