While waiting for iOS 4 is yet to made available, there’s an illegal way to get it earlier. A leaked version of iOS 4 golden masters is now distributed via torrents which can be found at certain torrent listing sites.
Since this is unofficial, you’ve been warned of the risks involved with installing such release. The official version should be coming up pretty soon so it might be a better idea to wait for it.
[ Source ]