I recently had to solve this same problem, except $X$ and $Y$ were uniform on $[0,1]$. The joint probability distribution was uniform, so I just needed to find the proportion of the area inside the region of the unit square where $|X-Y|\leq z$ for a given $z$.
I was wondering: what should I do if $X$ and $Y$ are independent exponential random variables with parameter $\lambda$? I believe I would have to integrate $$\int_{y_0}^{y_1} \int_{x_0}^{x_1} \lambda^2 e^{-\lambda(x+y)} \, \mathrm dx \, \mathrm dy$$
but I'm not sure what the bounds would be. How should one approach this?