To get straight to the answer, not asking why you actually would like to set those matrix rows to zero:
you can manually access and change values in GenericMatrix() or GenericVector() instances, see this post. So yes, you can set a row in the GenericMatrix() object to zero as follows:
from dolfin import *
import numpy as np
mesh = UnitSquareMesh(3,3)
V = FunctionSpace(mesh, 'CG', 1)
p,q = TrialFunction(V), TestFunction(V)
B = assemble(dot(grad(p),grad(q))*dx, tensor = PETScMatrix())
# Set the first row (idx_row) to zero
idx_row = np.array([0],dtype=np.intc)
B.zero(idx_row)
B.apply('insert')
print B.array()