Data-driven approximation of transfer operators for mean-field stochastic differential equations