Let $X$ be a standard Borel space and let us denote by $\mathcal P(X)$ the space of Borel probability measures on $X$ endowed with the topology of weak convergence. Define $d:\mathcal P(X)\times \mathcal P(X)\to [0,1]$ by $$ d(p,q) := \sup_{A\in \mathcal B(X)}|p(A) - q(A)| $$ to be the total variation metric on $\mathcal P(X)$. I wonder whether $d$ is a measurable function.
Since the topology induced by $d$ is stronger than the weak convergence, it is not a continuous function on $\mathcal P(X)$ and hence I can't use this argument to show the measurability. Perhaps, there is a way of showing measurability of $d$ based on the fact that the $\sigma$-algebra of $\mathcal P(X)$ can be equivalently defined as the one generated by evaluation maps $\theta_A(p):=p(A)$.
We first assume that $X$ is a separable metric space.
It's indeed standard: we define $\mathcal S:=\{B\subset X,\forall\varepsilon>0, \exists F\mbox{ closed}, O\mbox{ open}, (p+q)(O\setminus F)\lt\varepsilon, F\subset X\subset O\}$ and we can check it's a $\sigma$-algebra containing the open sets, hence the Borel $\sigma$-algebra.
Since $X$ is a separable metric space, we can find $(O_n)_{n\geqslant 1}$ a sequence of open sets such that if $O$ is an open set, there is $I\subset \mathbb N$ such that $O=\bigcup_{i\in\mathbb N}O_i$.
Fix an integer $n$, and take $U_n$ such that $$|p(U_n)-q(U_n)|\geqslant d(p,q)-n^{-1}.$$ We have $U_n=\bigcup_{i\in I}O_i$. For $N\geqslant 1$, define $V_N:=\bigcup_{i\in I\cap [1,N]}O_i$. Then $V_N\uparrow U_n$ hence there is an integer $N$ such that $p(U_n\setminus V_N)\lt n^{-1}$ and $q(U_n\setminus V_N)\lt n^{-1}$. We thus have that $$|p(V_N)-q(V_N)|\geqslant d(p,q)-3n^{-1}.$$ Define $$\mathcal F:=\left\{\bigcup_{i\in I}O_i,I\subset\mathbb N,I\mbox{ finite}\right\}.$$ We proved that $$d(P,Q)=\sup_{O\in \mathcal F}|p(O)-q(O)|$$ and since $\mathcal f$ is countable and $(p,q)\mapsto |p(O)-q(O)|$ is measurable for each $O$, we are done.
In the general case, we use an isomorphism with a separable metric space. We denote $X$ the Borel space and $Y$ the associated metric space, $\varphi\colon X\to Y$ the isomorphism. This provides a homeomorphism between $\mathcal P(X)$ and $\mathcal P(Y)$.