No, they are all useless.
Cables should be installed in specific places
//www.diynot.com/wiki/electrics:installation_techniques:walls
so unless there is a socket, switch or other item vertically or horizontally in line with your shelf, there shouldn't be any cables in the wall.
If there is a socket or switch apparently in line with a shelf fixing, then you could switch off the power, remove the socket from the wall and look behind to see which direction the cables go.