Here is a general and powerful method that can be applied as well to other kind of conics, e.g., ellipses.
This method uses the matrix representation of a conic section $(C)$ as follows:
$$\tag{1}ax^2+2bxy+cy^2+2dx+2ey+f=0 \ \ \iff \ \ \pmatrix{x&y&1}\underbrace{\pmatrix{a&b&d\\b&c&e\\d&e&f}}_{\Gamma}\pmatrix{x\\y\\1}=0$$
where $\Gamma$ is a so-called associated matrix to $(C)$.
The dual counterpart of $(1)$ is as follows.
A straight line with equation $ux+vy+w=0$ is tangent to $(C)$ if and only if:
$$\tag{2}Au^2+2Buv+Cv^2+2Du+2Ev+w^2=0 \ \ \iff \ \ \pmatrix{u&v&w}\underbrace{\pmatrix{A&B&D\\B&C&E\\D&E&F}}_{\Gamma^{-1}}\pmatrix{u\\v\\w}=0$$
where the associated matrix is the inverse of the previous matrix $\Gamma$.
Now, let us take particular cases, i.e., circles $C_1$ (resp $C_2$) with resp. equations $x^2+y^2-1=0$ and $x^2+y^2-8x+15=0$ (see figure below).
A straight line $ux+vy+w=0$ is thus tangent to $(C_1)$ and to $(C_2)$ if and only if its coefficients satisfy simultaneously:
$$\tag{3}\cases{u^2+v^2-w^2=0\\-15u^2+v^2-8uw-w^2=0}$$
(the computations have been done using a CAS, here Mathematica, see program below)
4 solutions are found:
$$\tag{4}\begin{cases}u=0,v=-w &\implies &y-1=0 & (L_1)\\
u=0, v=w & \implies & y+1=0 & (L_2)\\
u=w,v=\sqrt{3}w & \implies & x+\sqrt{3}y+1=0 & (L_3)\\
u=w,v=-\sqrt{3}w & \implies & x-\sqrt{3}y+1=0 & (L_4)
\end{cases}$$
Remark: once you have the equations of the tangents it is easy to obtain the contact points.
Appendix: Mathematica program giving solutions $(4)$:
G1 = {{1, 0, 0}, {0, 1, 0}, {0, 0, -1}}
G2 = {{1, 0, -4}, {0, 1, 0}, {-4, 0, 15}}
X = {u, v, w}
Gi1 = Inverse[G1]; f1 = Expand[X.Gi1.X]
Gi2 = Inverse[G2]; f2 = Expand[X.Gi2.X]
Solve[{f1 == 0, f2 == 0}, {u, v}]
