Neither of these sentences is quite right. 1) I inserted each of bolts into each of sockets would suggest that you had the same number of bolts and sockets and inserted one bolt into each socket. If you said I inserted a bolt into each socket it would get the point across.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.