Better to look in the API documentation
To give you an idea where to start:
You will not get direct access to a block you will have to iterate over the block table.
---------------------
using Autodesk.AutoCAD.DatabaseServices;
BlockTable _bt = (BlockTable)_t.GetObject(_cdb.BlockTableId, OpenMode.ForRead, false);
foreach (ObjectId btrId in _bt)
{
BlockTableRecord _btr = (BlockTableRecord)_t.GetObject(btrId, OpenMode.ForRead, false);
if (!_btr.IsAnonymous && !_btr.IsLayout && (_btr.IsFromExternalReference || _btr.IsFromOverlayReference))
{
Boolean _PathIsRelative = false;
String _xrefPath = _btr.PathName;
String _PathAbsolute = XRefRelink.Helper.RelativePath.GetPathAbsolute(_currentPath, _xrefPath);
if (_PathAbsolute.ToUpper() != _xrefPath.ToUpper())