I imagine they knew it was ice before they left Earth. It is, after all, a comet.
There’s some idiotic pseudo science theory that there is no ice in space. Unfortunately it seems to be picking us steam here at FR.