Blind identification of stochastic block models from dynamical observations