Yes you have square taper cranks. The piece with the flats is the adjustable cup, and you can use a large (12") adjustable wrench on it. A smaller wrench will work too, but it can be hard to engage both sides of the cup past the spindle.
A crank puller, or extractor, is the tool of choice...