Hi,
Sounds like you mean focal length in pixels, which is part of the camera’s calibration matrix, not the focus setting of the lens. In the matrix, the values called fx and fy are the focal length in pixels (horizontal and vertical).
You can get these values with the DepthAI API by reading the calibration and getting the intrinsics for the resolution you use. Docs with an example here: link