A hardwired dishwasher is unlikely to be connected to GFCI protection unless it is downstream of a GFCI receptacle (if you press the test button on those receptacles, does the dishwasher lose power?) or is on a GFCI breaker in the panel.
Adding a GFCI receptacle in a metal receptacle box is not that hard a job, but skilled electrician labor does cost money if you hire one to do it. (As sometimes mentioned on these forums, trades like electrician can pay well, but they do require significant learning beyond high school in order to do more complicated jobs than installing receptacles to existing wiring.)