Graphics3D[ Cuboid /@ Position[Normal[ SparseArray[ Band[{1, 1, 1}, Automatic, {2, 3, 1}] -> Table[x, {10}, {10}]]], x]]