Inertia depends on the mass of the body (i.e. how many protons and neutrons the body contains), not the shape.
Weighing an object on a spring or beam balance will give you the same result, albeit one may be more accurate than the other.
Addendum:
The term "inertia" refers qualitatively to an object's "amount of resistance to change in velocity" (which is determined by its mass), and sometimes its momentum, depending on context (e.g. "this object has a lot of inertia"). Another form of inertia is rotational inertia, which refers to the fact that a rotating rigid body maintains its state of uniform rotational motion. Moment of inertia quantifies the rotational inertia of a rigid body, i.e. its inertia with respect to rotational motion, in a manner somewhat analogous to how mass quantifies the inertia of a body with respect to translational motion.
Rotational inertia does depend on the shape of the body because rotation occurs about a particular axis, and the further away the mass is from the axis of rotation, the greater the rotational inertia. So if you have two objects of the same mass both rotating about their center of gravity, but one body is a ring with a large radius and the other object a sphere with a smaller radius, the ring will have a greater rotational inertia.