The power dissipated in a resistor is given by:
\[
P = I^2 R
\]
The resistance \( R \) of the wire is given by:
\[
R = \rho \frac{L}{A}
\]
Where:
- \( \rho = 1.7 \times 10^{-8} \, \Omega \text{m} \) is the resistivity,
- \( A = \frac{m}{\rho} \) is the cross-sectional area of the wire,
- \( L \) is the length of the wire.
Using the provided values and applying the formula, the length \( L \) is determined to be 10 m.
Thus, the length of the wire is \( \boxed{10 \, \text{m}} \).