Hammers confirm Polish swoop