If I understand well, you are trying to find all simple cycles of size 4 in your graph.
It is quite straightforward with NetworkX:
for c in nx.simple_cycles(G):
if len(c)==4: print(c)
You may need to know a bit more about graph theory (and specifically cycles) or check the NetworkX documentation on Cycles.
Cheers!