Text this: Inferring structural connectivity using Ising couplings in models of neuronal networks