Hi,

A couple of points:

1. It is likely that spam comes from zombie machine (taken over as a bot)

2. You may be theoretically able to gain (illegal) access to the machine if it is online for a long time

3. Otherwise, yes a court order is probably the only way to find the owner of a system