To quote from this textbook Chapter 5.2.3.1
> More specifically, a pair of observations is concordant if the observation with the larger value of $X_1$ also has the larger value for $X_2$. If $(X_1,X_2)$ and $(X_1',X_2')$ are independent and identically distributed then they are said to be concordant if $ (X_1- X_1')(X_2-X_2')>0$ , whereas they are said to be discordant when the reverse inequality is valid. Henceforth we denote $$\text{Pr}[\text{concordance}]=\text{Pr}[(X_1 - X_1')(X_2-X_2')>0] $$ and $$ \text{Pr}[\text{discordance}]=\text{Pr}[(X_1 -X_1')(X_2-X_2')<0]. $$
In Chapter 5.2.7.1 they also discuss the issue of ties, if that is a concern for you.