Electricity from heat is generated by temperature differences. Large differences are much more efficient than small differences and data centers are "small differences" for these purposes.
Unless you can use the heat directly, it won't be worth it to convert it into electricity.