How can you reformat W 580 sony ericson?

By reformat I'll assume you mean reset. There should be an option to restore your phone to factory settings in your settings menu somewhere.

If you mean completely flash the device, you will require a cable that you can purchase off eBay for a few dollars usually.