The determinant is not convex, nor concave, as soon as $n \ge 2$.
If a function is convex, it is convex when restricted to a subspace. If the determinant were convex, it would be convex on the set of (positive definite) diagonal matrices.
But then, in the case $n=2$ for example, the determinant of $\begin{pmatrix} x & 0 \\ 0 & y \end{pmatrix}$ is $x y$ which is not convex (indefinite Hessian). Same holds for any $n \ge 2$.
The same reasoning shows that the determinant is not concave as soon as $n \ge 2$.
However it is known the $n$-th root of the determinant is concave on positive definite matrices, see e.g. https://mathoverflow.net/questions/42594/concavity-of-det1-n-over-hpd-n