They wouldn't have to. They could use the peer-to-peer download software to determine the IP address of the computer, then backtrack the address to the user's internet service provider, who they would subpoena for the identity of the user with the lease on that IP address at the time in question.
Yes, if the machine was set up to share files, this is true.