List of neurons connecting to a particular neuron

I am interested in listing out all neurons/filters in layer (L-1) that are connected to a particular neuron (say neuron k) in layer L. Is there a way to do this easily?