Welcome to the forums! You'll need to craft keys to unlock them before you can break them. You might also need a better hammer for the "grey" one too, I'm not sure. All keys will work on equal or lower level locks, so you can use a gold key to open a copper lock for example. Recipes are below.
http://wiki.pixbits.com/wiki/Keys