In conformal field theories (CFTs) of dimension $d>3$, two-dimensional (2d) conformal defects are characterised in part by central charges defined via the defects contribution to the trace anomaly. However, in general for interacting CFTs these central charges are difficult to calculate. For superconformal 2d defects in supersymmetric (SUSY) CFTs (SCFTs), we show how to compute these defect central charges from the SUSY partition function either on $S^d$ with defect along $S^2$, or on $S^1 times S^{d-1}$ with defect along $S^1 times S^1$. In the latter case we propose that defect central charges appear in an overall normalisation factor, as part of the SUSY Casimir energy. For 2d half-BPS defects in 4d ${mathcal N}=2$ SCFTs and in the 6d ${mathcal N}=(2,0)$ SCFT we obtain novel, exact results for defect central charges using existing results for partition functions computed using SUSY localisation, SUSY indices, and correspondences to 2d Liouville, Toda, and $q$-deformed Yang-Mills theories. Some of our results for defect central charges agree with those obtained previously via holography, showing that the latter are not just large-$N$ and/or strong-coupling limits, but are exact. Our methods can be straightforwardly extended to other superconformal defects, of various codimension, as we demonstrate for a 4d defect in the 6d ${mathcal N}=(2,0)$ SCFT.