Assuming you have the circle radius and the distance from the circle centre to the line centre you can do it with pythagorus.

X = square root (r squared - centre to centre squared).

Your x coordinates for the line ends are then circle centre x + X, and circle centre x - X

Or have I misunderstood?