It seems to me that the English poem is indeed Kandel's original. There are very few similarities to the Polish version, other than the general theme. I found Lem's poem here: http://www.matematyka.wroc.pl/book/stanislaw-lem-zakochany-c...
Hm, interesting. Still impressive since he had to write the poem.