Subspace row and column index in the assembled matrix

Dear All,
How do I get the row and column indices in the assembled matrix corresponding to a subspace? Thank you.